Repository navigation
News sentiment study and $0 sentiment tracker - #46
Merged
Merged
Conversation
Each stock-day's sentiment (word-list tone of headline + summary plus signed headline events) from news out by 9:25 New York, traded from the official open; cells by sentiment x yesterday's / the past month's relative move (terciles); directions fixed on 2016-21, judged on 2022-26 at 0 and 5 bp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
Each weekday after the close: news out by 9:25 New York scored as in the news_sentiment study, split by each stock's past day / month, and the study's open-to-close rules booked at the official auction prices (hedged against the average stock) on a hypothetical $10,000 in a 'Sentiment tracker' tab. Clock 17:35 New York, cron backups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
…arch: sentiment] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Study (
qtrade/research/news_sentiment.py, research tasksentiment): every Benzinga article (headline + summary, at most 3 tagged stocks) is scored by word-list tone plus signed headline events. Each stock-day uses only news out by 9:25 New York and trades from the official open. Cells are sentiment × the stock's past-day / past-month relative move (terciles); targets are open→close and a 5-day hold, relative to the average stock. Directions are fixed on 2016-21 (|t| ≥ 2) and judged on 2022-26.Result (research/latest/sentiment.md): 3 open-to-close cells pass training and 1 keeps its sign in test: positive news on a stock whose previous day was average (middle tercile), +4.9 bp train (t 2.8), +4.7 bp test (t 2.7), about 19 names a day. The 3-rule book has a test Sharpe of 0.36 at 0 bp but -1.48 at 5 bp per round trip, so costs eat it. No 5-day cell passes.
Tracker (
qtrade/intraday/sentiment_sheet.py,sentiment-sheet.yml, clock 17:35 NY): $0 allocated, hypothetical $10,000, new "Sentiment tracker" tab. It scores the morning's news the same way and books the open-to-close rules that held up in test (fallback: all training rules, labelled) at the official open/close, hedged against the average stock.Also: an empty rule set no longer crashes the study.
Tests:
tests/test_news_sentiment.py(scoring, the 9:25 cutoff, terciles, finding a planted effect),tests/test_sentiment_sheet.py. The full suite passes.Generated by Claude Code